/*
 * Created on 2007-9-5
 *
 * TODO To change the template for this generated file go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
package com.tongji.quickCRUDQ.util;

/**
 * @author Administrator
 *
 * TODO To change the template for this generated type comment go to
 * Window - Preferences - Java - Code Style - Code Templates
 */
public class Option {
  private String key;
  private String text;
  private String group;
  
  
/**
 * @return Returns the key.
 */
public String getKey() {
	return key;
}
/**
 * @param key The key to set.
 */
public void setKey(String key) {
	this.key = key;
}
/**
 * @return Returns the text.
 */
public String getText() {
	return text;
}
/**
 * @param text The text to set.
 */
public void setText(String text) {
	this.text = text;
}

	/* (non-Javadoc)
	 * @see java.lang.Object#equals(java.lang.Object)
	 */
	public boolean equals(Object obj) {
		if(obj instanceof Option==false) return false;
		Option option=(Option)obj;
		return option.getKey().equals(this.getKey());
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	public String toString() {
		StringBuffer sb=new StringBuffer();
		sb.append("key=").append(this.getKey()).append(",text=").append(this.getText());
		return sb.toString();
		
	}
	public String getGroup() {
		return group;
	}
	public void setGroup(String group) {
		this.group = group;
	}
}
